<h1><?=$this->title ?></h1>
<ol>
<?php foreach($resources as $uri => $properties): ?>
<?php if(isset($properties['rdf:type']) and $properties['rdf:type'][0]['value']==$this->namespaces['changeset'].'ChangeSet'):?>
	<li>
		<h3><?=$Resources->to_resource($properties['changeset:subjectOfChange'][0]['value'])->get_title( $this->language)?></h3>
		<dl>
			<dt>User</dt><dd><h4><?=$properties['changeset:creatorName'][0]['value']?></h4></dd>
			<dt>Date</dt><dd><strong><?=$properties['changeset:createdDate'][0]['value']?></strong></dd>
			<dt>Reason</dt><dd><p><?=$properties['changeset:changeReason'][0]['value']?></p></dd>

		<?php if(isset($properties['changeset:removal'])):?>
			<?php $removed = $properties['changeset:removal'] ?>
				<dt>Removed</dt>
				
				<?php
				
				foreach($removed as $r):?>
					<?php if(isset($r['value']) and isset($resources[$r['value']])):?>
					 <dd><strong><?=$resources[$r['value']]['rdf:predicate'][0]['value'];?></strong>
							<?=$resources[$r['value']]['rdf:object'][0]['value']?>
					</dd>
					<?php endif?>
					
				<?php endforeach ?>

		<?php endif?>
		
			<?php if(isset($properties['changeset:addition'])):?>
				<?php $added = $properties['changeset:addition']?>
					<dt>Added</dt>
					<?php
					foreach($added as $r):?>
					<?php if(isset($r['value']) and isset($resources[$r['value']])):?>
						 		<dd>
									<strong>
									<?=$resources[$r['value']]['rdf:predicate'][0]['value'];?>
									</strong>
								<?=$resources[$r['value']]['rdf:object'][0]['value']?>
						</dd>
					<?php endif?>
					<?php endforeach ?>

			<?php endif?>
			
		</dl>
	</li>
<?php endif?>
<?php endforeach?>
</ol>